﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EventYard.Models
{
    public class Event
    {
        public int Id { get; set; }

        public string Title { get; set; }
        public string Notes { get; set; }
        public string Place { get; set; }
        public DateTime Time { get; set; }
        public int CreatorId { get; set; }

        public virtual ICollection<EventUsername> NotRegistredUsers { get; set; }
        public virtual ICollection<User> RegistredUsers { get; set; }

        public Event()
        {
            this.NotRegistredUsers = new HashSet<EventUsername>();
            this.RegistredUsers = new HashSet<User>();
        }
    }
}
